package cn.b.sky.shop.activiti.service;

import cn.b.sky.shop.activiti.model.ProcessModelParam;

import java.util.List;

public interface ProcessParamService {

  /**
   * 
   * <strong>Title : getProcessModeParamByModelId<br></strong>
   * <strong>Description : </strong>获取流程模型的变量<br> 
   * <strong>Create on : 2015-7-31 下午1:20:12<br></strong>
   * <p>
   * @param modelId
   * @return
   * List<ProcessModelParam>
   * @throws 
   * @author lidapeng<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  public List<ProcessModelParam> getProcessModeParamByModelId(String modelId);

  /**
   * 
   * <strong>Title : saveProcessModel<br></strong>
   * <strong>Description : </strong>保存流程模型的变量<br> 
   * <strong>Create on : 2015-7-31 下午1:20:28<br></strong>
   * <p>
   * @param param
   * void
   * @throws 
   * @author lidapeng<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  public void saveProcessModel(ProcessModelParam param);

  /**
   * <strong>Title : removeProcessModelByPK<br></strong>
   * <strong>Description : </strong>删除流程变量<br> 
   * <strong>Create on : 2015-7-31 下午1:20:42<br></strong>
   * <p>
   * @param modelId
   * @param code
   * void
   * @throws 
   * @author lidapeng<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  public void deleteProcessModelByPK(String modelId, String code);

  /**
   * 
   * <strong>Title : getProcessModeParamByModelIdAndCode<br></strong>
   * <strong>Description : </strong>根据模型id和参数id查询参数<br> 
   * <strong>Create on : 2015-9-16 上午10:40:38<br></strong>
   * <p>
   * @param modelId
   * @param code
   * @return
   * ProcessModelParam
   * @throws 
   * @author lidapeng<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  public ProcessModelParam getProcessModeParamByModelIdAndCode(String modelId, String code);
}
